


<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="en">
<!--<![endif]-->

<head>
  <meta charset="utf-8">
  
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  
  <title>hfai.conf.flags &mdash; HAI Platform  documentation</title>
  

  <link rel="shortcut icon" href="../../../_static/images/logo192.png" />
  
  

  

  
  
  

  

  <link rel="stylesheet" href="../../../_static/css/theme.css" type="text/css" />
  <!-- <link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" /> -->
  <link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
  <link rel="stylesheet" href="../../../_static/css/theme.css" type="text/css" />
  <link rel="stylesheet" href="../../../_static/css/custom.css" type="text/css" />
  <link rel="stylesheet" href="../../../_static/css/element-plus.css" type="text/css" />
  <link rel="index" title="Index" href="../../../genindex.html" />
  <link rel="search" title="Search" href="../../../search.html" />
  <!-- Google Analytics -->
  <script type="text/javascript">
    var collapsedSections = [];
  </script>
  
  <!-- End Google Analytics -->
  

  
  <script src="../../../_static/js/modernizr.min.js"></script>
  <script>
    MathJax = {
        chtml: {
            scale: 1,
            minScale: 1,
        },
        svg: {
            scale: 1,
            minScale: 1,
        }
    }
</script>

  <!-- Preload the theme fonts -->

<link rel="preload" href="../../../_static/fonts/FreightSans/freight-sans-book.woff2" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="preload" href="../../../_static/fonts/FreightSans/freight-sans-medium.woff2" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="preload" href="../../../_static/fonts/IBMPlexMono/IBMPlexMono-Medium.woff2" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="preload" href="../../../_static/fonts/FreightSans/freight-sans-bold.woff2" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="preload" href="../../../_static/fonts/FreightSans/freight-sans-medium-italic.woff2" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="preload" href="../../../_static/fonts/IBMPlexMono/IBMPlexMono-SemiBold.woff2" as="font" type="font/woff2" crossorigin="anonymous">

<!-- Preload the katex fonts -->

<link rel="preload" href="../../../_static/external/KaTeX_Math-Italic.woff2" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="preload" href="../../../_static/external/KaTeX_Main-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="preload" href="../../../_static/external/KaTeX_Main-Bold.woff2" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="preload" href="../../../_static/external/KaTeX_Size1-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="preload" href="../../../_static/external/KaTeX_Size4-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="preload" href="../../../_static/external/KaTeX_Size2-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="preload" href="../../../_static/external/KaTeX_Size3-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="preload" href="../../../_static/external/KaTeX_Caligraphic-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous">
  <link rel="stylesheet" href="../../../_static/external/all.css"
    integrity="sha384-vSIIfh2YWi9wW0r9iZe7RJPrKwp6bG+s9QZMoITbCckVJqGCCRhc+ccxNcdpHuYu" crossorigin="anonymous">
</head>

<div class="container-fluid header-holder tutorials-header" id="header-holder">
  <div class="container">
    <div class="header-container">
      <a class="header-logo" href=""
        aria-label="OpenMMLab"></a>

      <div class="main-menu">
        <ul>
        </ul>
      </div>

      <!-- <a class="main-menu-open-button" href="#" data-behavior="open-mobile-menu"></a> -->
    </div>
  </div>
</div>

<body class="pytorch-body">

   

  

  <div class="table-of-contents-link-wrapper">
    <span>Table of Contents</span>
    <a href="#" class="toggle-table-of-contents" data-behavior="toggle-table-of-contents"></a>
  </div>

  <nav data-toggle="wy-nav-shift" class="pytorch-left-menu" id="pytorch-left-menu">
    <div class="pytorch-side-scroll">
      <div class="pytorch-menu pytorch-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
        <div class="pytorch-left-menu-search">
          

          
          
          
          

          



<div role="search">
  <form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get">
    <input type="text" name="q" placeholder="Search Docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>

          
        </div>

        
        
        
        
        
        
        <p class="caption" role="heading"><span class="caption-text">开始使用</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../../start/hai_intro.html">基本介绍</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../start/install.html">安装与设置</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../start/studio.html">Studio</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">用户须知</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../../guide/tutorial.html">命令行工具 (CLI)</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../guide/environment.html">环境配置</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../guide/schedule.html">分时调度</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">CLI 说明</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../../cli/user.html">用户命令</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../cli/exec.html">运行命令</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../cli/task.html">任务命令</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../cli/cluster.html">集群命令</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../cli/ugc.html">UGC 命令</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">API 说明</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../../api/hai.html">hfai</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../api/client.html">hfai.client</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../api/client_remote.html">hfai.client.remote</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">其他</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../../misc/env_var.html">环境变量</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../misc/resources.html">外部资源</a></li>
</ul>

        
        
      </div>
    </div>
  </nav>

  <div class="pytorch-container">
    <div class="pytorch-page-level-bar" id="pytorch-page-level-bar">
      <div class="pytorch-breadcrumbs-wrapper">
        















<div role="navigation" aria-label="breadcrumbs navigation">

  <ul class="pytorch-breadcrumbs">
    
      <li>
        <a href="../../../index.html">
            Docs
        </a> &gt;
      </li>

        
          <li><a href="../../index.html">Module code</a> &gt;</li>
        
      <li>hfai.conf.flags</li>
    
    
      <li class="pytorch-breadcrumbs-aside">
        
      </li>
    
  </ul>

  
</div>
      </div>

      <div class="pytorch-shortcuts-wrapper" id="pytorch-shortcuts-wrapper">
        Shortcuts
      </div>
    </div>

    <section data-toggle="wy-nav-shift" id="pytorch-content-wrap" class="pytorch-content-wrap">
      <div class="pytorch-content-left">
        
          <div class="rst-content">
            
            <div role="main" class="main-content" itemscope="itemscope" itemtype="http://schema.org/Article">
              <article itemprop="articleBody" id="pytorch-article" class="pytorch-article">
                
  <h1>Source code for hfai.conf.flags</h1><div class="highlight"><pre>
<span></span>
<span class="k">try</span><span class="p">:</span>
    <span class="kn">from</span> <span class="nn">.server_flags</span> <span class="kn">import</span> <span class="o">*</span>
<span class="k">except</span> <span class="ne">Exception</span><span class="p">:</span>
    <span class="k">pass</span>
<span class="kn">import</span> <span class="nn">collections</span>
<span class="kn">import</span> <span class="nn">os</span>

<span class="k">class</span> <span class="nc">USER_ROLE</span><span class="p">():</span>
    <span class="n">INTERNAL</span> <span class="o">=</span> <span class="s1">&#39;internal&#39;</span>
    <span class="n">EXTERNAL</span> <span class="o">=</span> <span class="s1">&#39;external&#39;</span>

<span class="k">class</span> <span class="nc">EXP_STATUS</span><span class="p">():</span>
    <span class="n">QUEUED</span> <span class="o">=</span> <span class="s1">&#39;queued&#39;</span>
    <span class="n">CREATED</span> <span class="o">=</span> <span class="s1">&#39;created&#39;</span>
    <span class="n">BUILDING</span> <span class="o">=</span> <span class="s1">&#39;building&#39;</span>
    <span class="n">RUNNING</span> <span class="o">=</span> <span class="s1">&#39;running&#39;</span>
    <span class="n">UNSCHEDULABLE</span> <span class="o">=</span> <span class="s1">&#39;unschedulable&#39;</span>
    <span class="n">TERMINATING</span> <span class="o">=</span> <span class="s1">&#39;terminating&#39;</span>
    <span class="n">SUCCEEDED_TERMINATING</span> <span class="o">=</span> <span class="s1">&#39;succeeded_terminating&#39;</span>
    <span class="n">FAILED_TERMINATING</span> <span class="o">=</span> <span class="s1">&#39;failed_terminating&#39;</span>
    <span class="n">STOPPED_TERMINATING</span> <span class="o">=</span> <span class="s1">&#39;stopped_terminating&#39;</span>
    <span class="n">SUCCEEDED</span> <span class="o">=</span> <span class="s1">&#39;succeeded&#39;</span>
    <span class="n">FAILED</span> <span class="o">=</span> <span class="s1">&#39;failed&#39;</span>
    <span class="n">STOPPED</span> <span class="o">=</span> <span class="s1">&#39;stopped&#39;</span>
    <span class="n">MIXED</span> <span class="o">=</span> <span class="s1">&#39;mixed&#39;</span>
    <span class="n">UNFINISHED</span> <span class="o">=</span> <span class="p">[</span><span class="n">CREATED</span><span class="p">,</span> <span class="n">RUNNING</span><span class="p">,</span> <span class="n">BUILDING</span><span class="p">,</span> <span class="n">UNSCHEDULABLE</span><span class="p">,</span> <span class="n">SUCCEEDED_TERMINATING</span><span class="p">,</span> <span class="n">FAILED_TERMINATING</span><span class="p">,</span> <span class="n">STOPPED_TERMINATING</span><span class="p">]</span>
    <span class="n">ENDING</span> <span class="o">=</span> <span class="p">[</span><span class="n">STOPPED</span><span class="p">,</span> <span class="n">FAILED</span><span class="p">,</span> <span class="n">SUCCEEDED</span><span class="p">,</span> <span class="n">SUCCEEDED_TERMINATING</span><span class="p">,</span> <span class="n">FAILED_TERMINATING</span><span class="p">,</span> <span class="n">STOPPED_TERMINATING</span><span class="p">]</span>
    <span class="n">FINISHED</span> <span class="o">=</span> <span class="p">[</span><span class="n">STOPPED</span><span class="p">,</span> <span class="n">FAILED</span><span class="p">,</span> <span class="n">SUCCEEDED</span><span class="p">]</span>
    <span class="n">UPGRADE_FINISHED</span> <span class="o">=</span> <span class="p">[</span><span class="n">FAILED</span><span class="p">,</span> <span class="n">SUCCEEDED</span><span class="p">]</span>

<span class="k">class</span> <span class="nc">QUE_STATUS</span><span class="p">():</span>
    <span class="n">QUEUED</span> <span class="o">=</span> <span class="s1">&#39;queued&#39;</span>
    <span class="n">SCHEDULED</span> <span class="o">=</span> <span class="s1">&#39;scheduled&#39;</span>
    <span class="n">FINISHED</span> <span class="o">=</span> <span class="s1">&#39;finished&#39;</span>
<span class="n">STATUS_COLOR_MAP</span> <span class="o">=</span> <span class="p">{</span><span class="n">EXP_STATUS</span><span class="o">.</span><span class="n">QUEUED</span><span class="p">:</span> <span class="s1">&#39;blue&#39;</span><span class="p">,</span> <span class="n">EXP_STATUS</span><span class="o">.</span><span class="n">RUNNING</span><span class="p">:</span> <span class="s1">&#39;yellow&#39;</span><span class="p">,</span> <span class="n">EXP_STATUS</span><span class="o">.</span><span class="n">STOPPED</span><span class="p">:</span> <span class="s1">&#39;gray&#39;</span><span class="p">,</span> <span class="n">EXP_STATUS</span><span class="o">.</span><span class="n">SUCCEEDED</span><span class="p">:</span> <span class="s1">&#39;green&#39;</span><span class="p">,</span> <span class="n">EXP_STATUS</span><span class="o">.</span><span class="n">FAILED</span><span class="p">:</span> <span class="s1">&#39;red&#39;</span><span class="p">,</span> <span class="n">QUE_STATUS</span><span class="o">.</span><span class="n">QUEUED</span><span class="p">:</span> <span class="s1">&#39;blue&#39;</span><span class="p">,</span> <span class="n">QUE_STATUS</span><span class="o">.</span><span class="n">SCHEDULED</span><span class="p">:</span> <span class="s1">&#39;yellow&#39;</span><span class="p">,</span> <span class="n">QUE_STATUS</span><span class="o">.</span><span class="n">FINISHED</span><span class="p">:</span> <span class="s1">&#39;red&#39;</span><span class="p">}</span>

<span class="k">class</span> <span class="nc">STOP_CODE</span><span class="p">():</span>
    <span class="n">NO_STOP</span> <span class="o">=</span> <span class="mi">0</span>
    <span class="n">STOP</span> <span class="o">=</span> <span class="mi">1</span>
    <span class="n">INTERRUPT</span> <span class="o">=</span> <span class="mi">16</span>
    <span class="n">UNSCHEDULABLE</span> <span class="o">=</span> <span class="mi">32</span>
    <span class="n">FAILED</span> <span class="o">=</span> <span class="mi">128</span>
    <span class="n">INIT_FAILED</span> <span class="o">=</span> <span class="mi">256</span>
    <span class="n">TIMEOUT</span> <span class="o">=</span> <span class="mi">512</span>
    <span class="n">MANUAL_STOP</span> <span class="o">=</span> <span class="mi">1024</span>
    <span class="n">HOOK_RESTART</span> <span class="o">=</span> <span class="mi">2048</span>
    <span class="n">MANUAL_SUCCEEDED</span> <span class="o">=</span> <span class="mi">4096</span>
    <span class="n">MANUAL_FAILED</span> <span class="o">=</span> <span class="mi">8192</span>

    <span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
        <span class="bp">self</span><span class="o">.</span><span class="n">action_map</span> <span class="o">=</span> <span class="n">collections</span><span class="o">.</span><span class="n">OrderedDict</span><span class="p">()</span>
        <span class="k">for</span> <span class="n">k</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="vm">__class__</span><span class="o">.</span><span class="vm">__dict__</span><span class="p">:</span>
            <span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="vm">__class__</span><span class="o">.</span><span class="vm">__dict__</span><span class="p">[</span><span class="n">k</span><span class="p">],</span> <span class="nb">int</span><span class="p">):</span>
                <span class="bp">self</span><span class="o">.</span><span class="n">action_map</span><span class="p">[</span><span class="bp">self</span><span class="o">.</span><span class="vm">__class__</span><span class="o">.</span><span class="vm">__dict__</span><span class="p">[</span><span class="n">k</span><span class="p">]]</span> <span class="o">=</span> <span class="n">k</span>

    <span class="k">def</span> <span class="nf">name</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">action</span><span class="p">):</span>
        <span class="k">for</span> <span class="n">k</span> <span class="ow">in</span> <span class="nb">reversed</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">action_map</span><span class="o">.</span><span class="n">keys</span><span class="p">()):</span>
            <span class="k">if</span> <span class="p">(</span><span class="n">action</span> <span class="o">&gt;=</span> <span class="n">k</span><span class="p">):</span>
                <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">action_map</span><span class="p">[</span><span class="n">k</span><span class="p">]</span>
        <span class="k">return</span> <span class="s1">&#39;NAN&#39;</span>

<span class="k">class</span> <span class="nc">SUSPEND_CODE</span><span class="p">():</span>
    <span class="n">NO_SUSPEND</span> <span class="o">=</span> <span class="mi">0</span>
    <span class="n">SUSPEND_SENT</span> <span class="o">=</span> <span class="mi">1</span>
    <span class="n">SUSPEND_RECEIVED</span> <span class="o">=</span> <span class="mi">2</span>
    <span class="n">CAN_SUSPEND</span> <span class="o">=</span> <span class="mi">3</span>

<span class="k">class</span> <span class="nc">TASK_TYPE</span><span class="p">():</span>
    <span class="n">UPGRADE_TASK</span> <span class="o">=</span> <span class="s1">&#39;upgrade&#39;</span>
    <span class="n">TRAINING_TASK</span> <span class="o">=</span> <span class="s1">&#39;training&#39;</span>
    <span class="n">JUPYTER_TASK</span> <span class="o">=</span> <span class="s1">&#39;jupyter&#39;</span>
    <span class="n">VIRTUAL_TASK</span> <span class="o">=</span> <span class="s1">&#39;virtual&#39;</span>
    <span class="n">VALIDATION_TASK</span> <span class="o">=</span> <span class="s1">&#39;validation&#39;</span>
    <span class="n">BACKGROUND_TASK</span> <span class="o">=</span> <span class="s1">&#39;background&#39;</span>

    <span class="nd">@classmethod</span>
    <span class="k">def</span> <span class="nf">all_task_types</span><span class="p">(</span><span class="bp">cls</span><span class="p">):</span>
        <span class="k">return</span> <span class="p">[</span><span class="nb">getattr</span><span class="p">(</span><span class="n">TASK_TYPE</span><span class="p">,</span> <span class="n">t</span><span class="p">)</span> <span class="k">for</span> <span class="n">t</span> <span class="ow">in</span> <span class="bp">cls</span><span class="o">.</span><span class="vm">__dict__</span><span class="o">.</span><span class="n">keys</span><span class="p">()</span> <span class="k">if</span> <span class="n">t</span><span class="o">.</span><span class="n">isupper</span><span class="p">()]</span>

<span class="k">class</span> <span class="nc">CHAIN_STATUS</span><span class="p">():</span>
    <span class="n">WAITING_INIT</span> <span class="o">=</span> <span class="s1">&#39;waiting_init&#39;</span>
    <span class="n">RUNNING</span> <span class="o">=</span> <span class="s1">&#39;running&#39;</span>
    <span class="n">SUSPENDED</span> <span class="o">=</span> <span class="s1">&#39;suspended&#39;</span>
    <span class="n">FINISHED</span> <span class="o">=</span> <span class="s1">&#39;finished&#39;</span>

<span class="k">def</span> <span class="nf">chain_status_to_queue_status</span><span class="p">(</span><span class="n">cs</span><span class="p">):</span>
    <span class="k">if</span> <span class="p">(</span><span class="n">cs</span> <span class="ow">in</span> <span class="p">[</span><span class="n">CHAIN_STATUS</span><span class="o">.</span><span class="n">WAITING_INIT</span><span class="p">,</span> <span class="n">CHAIN_STATUS</span><span class="o">.</span><span class="n">SUSPENDED</span><span class="p">]):</span>
        <span class="k">return</span> <span class="n">QUE_STATUS</span><span class="o">.</span><span class="n">QUEUED</span>
    <span class="k">if</span> <span class="p">(</span><span class="n">cs</span> <span class="o">==</span> <span class="n">CHAIN_STATUS</span><span class="o">.</span><span class="n">RUNNING</span><span class="p">):</span>
        <span class="k">return</span> <span class="n">QUE_STATUS</span><span class="o">.</span><span class="n">SCHEDULED</span>
    <span class="k">if</span> <span class="p">(</span><span class="n">cs</span> <span class="o">==</span> <span class="n">CHAIN_STATUS</span><span class="o">.</span><span class="n">FINISHED</span><span class="p">):</span>
        <span class="k">return</span> <span class="n">QUE_STATUS</span><span class="o">.</span><span class="n">FINISHED</span>

<span class="k">class</span> <span class="nc">TASK_FLAG</span><span class="p">():</span>
    <span class="n">SUSPEND_CODE</span> <span class="o">=</span> <span class="mi">3</span>
    <span class="n">STAR</span> <span class="o">=</span> <span class="mi">4</span>

<div class="viewcode-block" id="EXP_PRIORITY"><a class="viewcode-back" href="../../../api/client.html#hfai.client.EXP_PRIORITY">[docs]</a><span class="k">class</span> <span class="nc">EXP_PRIORITY</span><span class="p">():</span>
    <span class="n">EXTREME_HIGH</span> <span class="o">=</span> <span class="mi">50</span>
    <span class="n">VERY_HIGH</span> <span class="o">=</span> <span class="mi">40</span>
    <span class="n">HIGH</span> <span class="o">=</span> <span class="mi">30</span>
    <span class="n">ABOVE_NORMAL</span> <span class="o">=</span> <span class="mi">20</span>
    <span class="n">AUTO</span> <span class="o">=</span> <span class="p">(</span><span class="o">-</span> <span class="mi">1</span><span class="p">)</span>

    <span class="nd">@classmethod</span>
    <span class="k">def</span> <span class="nf">get_name_by_value</span><span class="p">(</span><span class="bp">cls</span><span class="p">,</span> <span class="n">value</span><span class="p">):</span>
        <span class="k">for</span> <span class="p">(</span><span class="n">k</span><span class="p">,</span> <span class="n">v</span><span class="p">)</span> <span class="ow">in</span> <span class="bp">cls</span><span class="o">.</span><span class="vm">__dict__</span><span class="o">.</span><span class="n">items</span><span class="p">():</span>
            <span class="k">if</span> <span class="p">(</span><span class="n">v</span> <span class="o">==</span> <span class="n">value</span><span class="p">):</span>
                <span class="k">return</span> <span class="n">k</span>
        <span class="k">return</span> <span class="s1">&#39;AUTO&#39;</span></div>

<span class="k">class</span> <span class="nc">WARN_TYPE</span><span class="p">():</span>
    <span class="n">COMPLETED</span> <span class="o">=</span> <span class="mi">1</span>
    <span class="n">TERMINATING</span> <span class="o">=</span> <span class="mi">2</span>
    <span class="n">LOG</span> <span class="o">=</span> <span class="mi">4</span>
    <span class="n">INTERRUPT</span> <span class="o">=</span> <span class="mi">8</span>

<span class="k">class</span> <span class="nc">PARLIAMENT_MEMBERS</span><span class="p">():</span>
    <span class="n">SENATOR</span> <span class="o">=</span> <span class="s1">&#39;senator&#39;</span>
    <span class="n">MASS</span> <span class="o">=</span> <span class="s1">&#39;mass&#39;</span>

<span class="k">class</span> <span class="nc">PARLIAMENT_SOURCE_TYPE</span><span class="p">():</span>
    <span class="n">CREATE_ARCHIVE</span> <span class="o">=</span> <span class="s1">&#39;create_archive&#39;</span>
    <span class="n">CANCEL_MASS</span> <span class="o">=</span> <span class="s1">&#39;cancel_mass&#39;</span>
    <span class="n">REGISTER_MASS</span> <span class="o">=</span> <span class="s1">&#39;register_mass&#39;</span>
    <span class="n">UPDATE</span> <span class="o">=</span> <span class="s1">&#39;update&#39;</span>
    <span class="n">CONNECT</span> <span class="o">=</span> <span class="s1">&#39;connect&#39;</span>
    <span class="n">CANCEL_ARCHIVE</span> <span class="o">=</span> <span class="s1">&#39;cancel_archive&#39;</span>
</pre></div>

              </article>
              
            </div>
            <footer>
  

  <hr>

  <div role="contentinfo">
    <p>
      &copy; Copyright 2023, High-Flyer.

    </p>
  </div>
  
  <div>
    Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a
      href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the
      Docs</a>.
  </div>
   

</footer>
          </div>
        </div>

        <div class="pytorch-content-right" id="pytorch-content-right">
          <div class="pytorch-right-menu" id="pytorch-right-menu">
            <div class="pytorch-side-scroll" id="pytorch-side-scroll-right">
              
            </div>
          </div>
        </div>
    </section>
  </div>

  


  

  
  <script type="text/javascript" id="documentation_options" data-url_root="../../../"
    src="../../../_static/documentation_options.js"></script>
  <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script>
  <script src="../../../_static/jquery.js"></script>
  <script src="../../../_static/underscore.js"></script>
  <script src="../../../_static/doctools.js"></script>
  <script src="../../../_static/js/vue.global.prod.js"></script>
  <script src="../../../_static/js/element-plus.full.js"></script>
  

  

  <script type="text/javascript" src="../../../_static/js/vendor/popper.min.js"></script>
  <script type="text/javascript" src="../../../_static/js/vendor/bootstrap.min.js"></script>
  <script src="../../../_static/external/list.min.js"></script>
  <script type="text/javascript" src="../../../_static/js/theme.js"></script>

  <script type="text/javascript">
    jQuery(function () {
      SphinxRtdTheme.Navigation.enable(true);
      });
  </script> 

  <!-- Begin Footer -->

  <!-- <div class="container-fluid docs-tutorials-resources" id="docs-tutorials-resources">
  </div> -->

  <!-- End Footer -->

  <!-- Begin Mobile Menu -->

  <div class="mobile-main-menu">
    <div class="container-fluid">
      <div class="container">
        <div class="mobile-main-menu-header-container">
          <a class="header-logo" href="" aria-label="OpenMMLab"></a>
          <a class="main-menu-close-button" href="#" data-behavior="close-mobile-menu"></a>
        </div>
      </div>
    </div>

    <div class="mobile-main-menu-links-container">
      <div class="main-menu">
        <ul>
      </div>
    </div>
  </div>

  <!-- End Mobile Menu -->

  <script type="text/javascript" src="../../../_static/js/vendor/anchor.min.js"></script>

  <script type="text/javascript">
    $(document).ready(function () {
      mobileMenu.bind();
      mobileTOC.bind();
      pytorchAnchors.bind();
      sideMenus.bind();
      scrollToAnchor.bind();
      highlightNavigation.bind();
      mainMenuDropdown.bind();
      filterTags.bind();

      // Add class to links that have code blocks, since we cannot create links in code blocks
      $("article.pytorch-article a span.pre").each(function (e) {
        $(this).closest("a").addClass("has-code");
      });
    })
  </script>
</body>

</html>